import axios from '../plugins/axios.js'

export function api_login(username, password) {
    console.log(this);
    return axios.post('/admin/login',{
        username,password
    })
}
//注销
export function api_logout() {
    return axios.post('/admin/logout')
}

//菜单
export function api_info() {
    return axios.get('/admin/info')
}